package com.oneguy.model.service;

import com.oneguy.model.bean.ActiveUser;
import com.oneguy.model.bean.User;
import com.oneguy.model.bean.UserTransfer;
import com.oneguy.model.bean.UserTransferDetail;
import com.oneguy.model.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zl on 2015/8/27.
 */

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUserInfo(){
        User user=userMapper.findUserInfo();
        //User user=null;
        return user;
    }

    public List<UserTransfer> queryUserTransfer(int id){
        return userMapper.queryUserTransfer(id);
    }

    public List<UserTransferDetail> queryUserTransferOutDetail(int id){
        return userMapper.queryUserTransferOutDetail(id);
    }

    public List<UserTransferDetail> queryUserTransferInDetail(int id){
        return userMapper.queryUserTransferInDetail(id);
    }

}
